package objects;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.enterprise.context.ApplicationScoped;
import javax.inject.Named;

/**
 * Created with IntelliJ IDEA.
 * User: Casper
 * Date: 19-04-12
 * Time: 11:25
 * To change this template use File | Settings | File Templates.
 */
@Named
@ApplicationScoped
public class Forum implements Serializable{
	
	List<Category> categories;
	
	public Forum()
	{
		categories = new ArrayList<Category>();
		loadCategories();
	}
	
	private void loadCategories()
	{
		String cmd = "SELECT * FROM Categories WHERE parent=null ORDER BY order";
	}
	
}
